package de.thm.exa.interfaces;

import de.thm.exa.exceptions.HashException;
import de.thm.exa.holders.Page;
import de.thm.exa.holders.PageList;
import java.io.File;
import java.io.IOException;

public interface HashAlgorithm
{
    public void insert(Page page) throws HashException;

    public PageList get(String keyword) throws HashException;
    public void printFile(File file) throws IOException;
    
    public long getInserts();
    public long getCollisions();
    public long getElapsedTime();
    public void setElapsedTime(long time);
    
    public void setSucceeded(boolean succeeded);
    public boolean succeeded();
}